<script type="text/javascript" charset="utf-8">
	/* Global var for counter */
	
	$(document).ready(function() {
		$('#example').dataTable();
	} );
</script>


<!-- /.section, /#navigation -->
<div id="main-wrapper">
  <div class="clearfix with-navigation" id="main">
    <div class="column" id="content">
      <div class="section">
      		<!--{$htmlErrMsg}-->
       <div class="tabs">
          <ul class="tabs primary clearfix">
          
          <!--{if ($smarty.session.authority == $smarty.const.AUTHORITY_ADMIN)
          			OR ($smarty.session.authority == $smarty.const.AUTHORITY_MEMBER_ADMIN) }-->
            <li >
              <a href="<!--{$smarty.const.HTTP_URL}-->mypage/index.php">
                <span class="tab">members Management</span>
              </a>
            </li>
           <!--{/if}-->
           
           <!--{if ($smarty.session.authority == $smarty.const.AUTHORITY_ADMIN)
          			OR ($smarty.session.authority == $smarty.const.AUTHORITY_NEWS_ADMIN) }-->
            <li>
              <a href="<!--{$smarty.const.HTTP_URL}-->newsAdmin/index.php?mode=showNewslist">
                <span class="tab">Announcement/even Management</span>
              </a>
            </li>
            <!--{/if}-->
            
            <!--{if ($smarty.session.authority == $smarty.const.AUTHORITY_ADMIN)
          			OR ($smarty.session.authority == $smarty.const.AUTHORITY_CONFERENCE_ADMIN) }-->
            <li class="active">
              <a href="<!--{$smarty.const.HTTP_URL}-->conference/index.php"  class="active">
                <span class="tab">conference Management</span>
              </a>
            </li>
            <!--{/if}-->
            
            <!--{if ($smarty.session.authority == $smarty.const.AUTHORITY_ADMIN)
          			OR ($smarty.session.authority == $smarty.const.AUTHORITY_ELECT_ADMIN) }-->
             <li>
              <a href="<!--{$smarty.const.HTTP_URL}-->elect/elect.php">
                <span class="tab">elect Management</span>
              </a>
            </li>
            <!--{/if}-->
            
            <!--{if ($smarty.session.authority == $smarty.const.AUTHORITY_ADMIN) }-->
            <li>
              <a href="<!--{$smarty.const.HTTP_URL}-->pay/show_payment_details.php">
                <span class="tab">payment Management</span>
              </a>
            </li>
            
            <!--{/if}-->
          </ul>
        </div>
       <div class="tabs" style="margin-top:10px;">
          <ul class="tabs primary clearfix">
            <li class="active">
              <a href="<!--{$smarty.const.HTTP_URL}-->conference/index.php"  class="active">
                <span class="tab">Conference List</span>
              </a>
            </li>
            <li >
              <a href="<!--{$smarty.const.HTTP_URL}-->conference/create_conference.php" >
                <span class="tab">Creat New Conference</span>
              </a>
            </li>
          </ul>
        </div>
      
      <div id="content-area">
          <form action="<!--{$smarty.const.HTTP_URL}-->conference/index.php" method="post" id="user-register" >
          <input type="hidden" name="mode" id="mode" value="dataExport" />
		  <input type="hidden" name="exportMode" id="exportMode" value="conference" />
          <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
          	<div style="height: 20px" id="container" >
				<input name="joinConference" id="joinConference" value="Data Export" class="form-submit" type="submit" style=" float:right; width:100px; ">
			</div>
            <div>
               		<div style="height: 500px" id="container" >
					<div id="demo">
						<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
							<thead>
								<tr>
									<th>ID</th>
									<th>Name </th>
									<th>Publisher</th>
									<th>StartTime</th>
									<th>EndTime</th>
									<!--<th>Organizer</th>-->
									<th>Status</th>
									<th>Peoples</th>
									<th>Amount($)</th>
									<th>Edit</th>
								</tr>
							</thead>
							<tbody>
							<!--{section name=cnt loop=$conferenceInfo}-->
								<tr>
									<td><!--{$conferenceInfo[cnt].id|escape}--></a></td>
									<td><a href="<!--{$smarty.const.HTTP_URL}-->conference/index.php?mode=showConference&id=<!--{$conferenceInfo[cnt].id|escape}-->">
										<!--{$conferenceInfo[cnt].conference_title|escape}-->
										</a>
									</td>
									<td><!--{$conferenceInfo[cnt].publisher_firstname|escape}--> &nbsp;<!--{$conferenceInfo[cnt].publisher_lastname|escape}--></td>
									<td><!--{$conferenceInfo[cnt].start_time|escape}--></td>
									<td><!--{$conferenceInfo[cnt].close_time|escape}--></td>
									<!--<td><!--{$conferenceInfo[cnt].organizer|escape}--></td>-->
									<td><!--{$conferenceInfo[cnt].status|escape}--></td>
									<td>
										<a  target="_blank" href="<!--{$smarty.const.HTTP_URL}-->conference/index.php?mode=showParticipant&conferenceId=<!--{$conferenceInfo[cnt].id|escape}-->">
											<!--{$conferenceInfo[cnt].manCount|escape}-->	
										</a> 
									</td>
									<td>
										<a target="_blank"  href="<!--{$smarty.const.HTTP_URL}-->conference/index.php?mode=showServiceCountDetail&conferenceId=<!--{$conferenceInfo[cnt].id|escape}-->">
											<!--{$conferenceInfo[cnt].amountCount|escape}-->
										</a> 
									</td>
									<!--{if ($conferenceInfo[cnt].canBeEdit == "Deleted") }-->
									<td>
										Deleted
									</td>
									<!--{elseif ($conferenceInfo[cnt].canBeEdit == "Blocked") }-->
									<td>
										<a href="<!--{$smarty.const.HTTP_URL}-->conference/index.php?mode=editConference&id=<!--{$conferenceInfo[cnt].id|escape}-->">
											Edit&nbsp;
										</a>
										<a href="<!--{$smarty.const.HTTP_URL}-->conference/index.php?mode=activeConference&conferenceId=<!--{$conferenceInfo[cnt].id|escape}-->">
											Active
										</a> 
									</td>								
									<!--{else}-->
									<td>
										<a href="<!--{$smarty.const.HTTP_URL}-->conference/index.php?mode=editConference&id=<!--{$conferenceInfo[cnt].id|escape}-->">
											Edit&nbsp;
										</a>
										<a href="<!--{$smarty.const.HTTP_URL}-->conference/index.php?mode=deleteConference&conferenceId=<!--{$conferenceInfo[cnt].id|escape}-->">
											Delete
										</a> 
									</td>
									<!--{/if}-->
								</tr>
							<!--{/section}-->
							</tbody>
						</table>
					</div>
				</div>
            </div>
          </form>
        </div>
      
    </div>
    <!-- /.section, /#content -->
  </div>
</div>
<!-- /#main, /#main-wrapper -->
